#include <bits/stdc++.h>
using namespace std;
int main() {
    double mx=0,mn=100,n,sum=0,input;
    cin>>n;
    for (int j = 0; j < n; ++j) {
        cin>>input;
        sum += input;
        mx = max(input,mx);
        mn = min(input,mn);
    }
    printf("average = %.2f\nmax = %.2f\nmin = %.2f",sum/n,mx,mn);
}
